import main from '@/pages/main'
import login from '@/pages/login'
import regist from '@/pages/regist'
import shouye from '@/pages/shouye'
import huihua from '@/pages/huihua'
import fangke from '@/pages/fangke'
import lishi from '@/pages/lishi'
import kehu from '@/pages/kehu'
import kehudetail from '@/pages/kehudetail'
import gongdan from '@/pages/gongdan/gongdan'
import tongji from '@/pages/tongji/tongji'
import shezhi from '@/pages/shezhi'

// import Test from '@/components/Test'
import GongdanTable from '@/components/MyTable/GongdanTable'
import testPage from '@/pages/testPage'

import Basesz from '@/components/Setting/Gongdan/Basesz'
import Duihuagz from '@/components/Setting/Kefu/Duihuagz'
import Huihuapj from '@/components/Setting/Kefu/Huihuapj'
import Zidonghuifu from '@/components/Setting/Kefu/Zidonghuifu'
import Fenpeigz from '@/components/Setting/Kefu/Fenpeigz'
import CaozuoRizhi from '@/components/Setting/Quanju/CaozuoRizhi'
import ChangyongYu from '@/components/Setting/Kefu/ChangyongYu'
import XiaoxiTongzhi from '@/components/Setting/Quanju/XiaoxiTongzhi'
import HeiMingdan from '@/components/Setting/Kefu/HeiMingdan'
import GongdanFenlei from '@/components/Setting/Gongdan/GongdanFenlei'
import ActorManage from '@/components/Setting/Group/ActorManage'
import Administration from '@/components/Setting/Group/Administration'
import KefuManage from '@/components/Setting/Group/KefuManage'
import personmessage from '@/components/Setting/Tongyong/Person/personmessage'
import companymessage from '@/components/Setting/Group/Company/companymessage'
import KehuBiaoqian from '@/components/Setting/Kefu/KehuBiaoqian'
import TongzhiGonggao from '@/components/Setting/Tongyong/TongzhiGonggao'
import Kehuxinxi from '@/components/Setting/Kefu/Kehuxinxi'
import KaoqingTongji from '@/components/Tongji/KaoqingTongji'
import GongzuoZhiliang from '@/components/Tongji/GongzuoZhiliang'
import FangwenTongji from '@/components/Tongji/FangwenTongji'
import GongdanMoreInfo from '@/components/Gongdan/GongdanMoreInfo'
import ShujuZonglan from '@/components/Tongji/ShujuZonglan'
import Gongzuoliang from '@/components/Tongji/Gongzuoliang'

let routes = [
    {
        path: '/test',
        component: testPage
    },
    {
        path: '/',
        component: login
    },
    {
        path: '/regist',
        component: regist
    },
    {
        path: '/main',
        component: main,
        children: [
            {
                path: 'shouye',
                component: shouye
            },
            {
                path: 'huihua',
                component: huihua
            },
            {
                path: 'fangke',
                component: fangke
            },
            {
                path: 'lishi',
                component: lishi
            },
            {
                path: 'kehu',
                component: kehu
            },
            {
                path: 'kehudetail',
                component: kehudetail
            },
            {
                path: 'gongdandetail',
                component: GongdanMoreInfo
            },
            {
                path: 'gongdan',
                component: gongdan,
                children: [
                    {
                        path: '',
                        component: GongdanTable
                    },
                    {
                        path: 'all',
                        component: GongdanTable,
                        props: (route) => ({
                            type: route.query.type
                        })
                    }
                ]
            },
            {
                path: 'tongji',
                component: tongji,
                children: [
                    {
                        path: '',
                        component: ShujuZonglan
                    },
                    {
                        path: 'kqtj',
                        component: KaoqingTongji
                    },
                    {
                        path: 'gzzl',
                        component: GongzuoZhiliang
                    },
                    {
                        path: 'fwtj',
                        component: FangwenTongji
                    },
                    {
                        path: 'sjzl',
                        component: ShujuZonglan
                    },
                    {
                        path: 'gzl',
                        component: Gongzuoliang
                    }
                ]
            },
            {
                path: 'shezhi',
                component: shezhi,
                children: [
                    {
                        path: '',
                        component: personmessage
                    },
                    {
                        path: 'gd-sz',
                        component: Basesz
                    },
                    {
                        path: 'gd-fl',
                        component: GongdanFenlei
                    },
                    {
                        path: 'kf-zdhf',
                        component: Zidonghuifu
                    },
                    {
                        path: 'kf-fpgz',
                        component: Fenpeigz
                    },
                    {
                        path: 'kf-hhpj',
                        component: Huihuapj
                    },
                    {
                        path: 'kf-dhgz',
                        component: Duihuagz
                    },
                    {
                        path: 'kf-cyy',
                        component: ChangyongYu
                    },
                    {
                        path: 'kf-hmd',
                        component: HeiMingdan
                    },
                    {
                        path: 'kf-khbq',
                        component: KehuBiaoqian
                    },
                    {
                        path: 'kf-khxx',
                        component: Kehuxinxi
                    },
                    {
                        path: 'qj-czrz',
                        component: CaozuoRizhi
                    },
                    {
                        path: 'qj-xxtz',
                        component: XiaoxiTongzhi
                    },
                    {
                        path: 'td-qyxx',
                        component: companymessage
                    },
                    {
                        path: 'td-jsgl',
                        component: ActorManage
                    },
                    {
                        path: 'td-fzgl',
                        component: Administration
                    },
                    {
                        path: 'td-kfgl',
                        component: KefuManage
                    },
                    {
                        path: 'ty-grxx',
                        component: personmessage
                    },
                    {
                        path: 'ty-tzgg',
                        component: TongzhiGonggao
                    }
                ]
            },
        ]
    }
]

export default routes